package com.example.p_ttcheng.rrk.activities;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.example.p_ttcheng.rrk.R;
import com.example.p_ttcheng.rrk.adapters.RentDetailAdapter;
import com.example.p_ttcheng.rrk.adapters.SellAdapter;
import com.example.p_ttcheng.rrk.adapters.SellDetailAdapter;
import com.example.p_ttcheng.rrk.common.BaseActivity;

public class SellDetailActivity extends BaseActivity {

    RecyclerView mRecyclerView;

    @Override
    public int getViewId() {
        return R.layout.activity_sell_detail;
    }

    @Override
    public void initView() {
        mRecyclerView = (RecyclerView) findViewById(R.id.reView);
        mRecyclerView.setLayoutManager(new LinearLayoutManager(this));
        mRecyclerView.setAdapter(new SellDetailAdapter(SellDetailActivity.this));
        android.support.v7.app.ActionBar actionBar = getSupportActionBar();
        if(actionBar != null){
            actionBar.setHomeButtonEnabled(true);
            actionBar.setDisplayHomeAsUpEnabled(true);
            actionBar.setTitle("销售详情");
        }
    }
}
